package com.xbongbong.pro.rabbitmq.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.message.pojo.dto.MessageRabbitMqDTO;
import com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @Description: AI内部调用接口(消息用)
 * @Author: jiping.yang
 * @Date: 2022-09-23  10:18
 * @version: v1.0
 **/
@FeignClient(name = "pro-web-pc",contextId = "aiFeignClient")
public interface AIFeignClient {
    /**
     * Description: 导入数据，消息接口
     * @param messageRabbitMqDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author jiping.yang
     * @date 2022/9/26 16:11
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/ai/importData", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> importDataSend(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);
    /**
     * Description: 训练数据，消息接口
     * @param messageRabbitMqDTO 消息推送  走消息队列，用于传输数据的
     * @return com.xbongbong.paas.toolbox.wrap.XbbResponse<com.xbongbong.pro.message.pojo.vo.MessageRabbitMqVO>
     * @author jiping.yang
     * @date 2022/9/26 16:11
     * @since v1.0
     */
    @RequestMapping(value = "/pro/v1/message/mq/ai/trainData", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    XbbResponse<MessageRabbitMqVO> trianDataSend(@RequestBody MessageRabbitMqDTO messageRabbitMqDTO);

}
